// 获取参数
export function GetUrlParam (name) {
  var url = window.location.href

  const params = url.substr(url.lastIndexOf('?') + 1).split('&')
  for (let i = 0; i < params.length; i++) {
    const param = params[i]
    const key = param.split('=')[0]
    const value = param.split('=')[1]
    if (key === name) {
      return value
    }
  }
}
